package be.donovan.gui.invoice;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;

import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;
import javax.swing.plaf.BorderUIResource;

import be.donovan.gui.helper.ImageLoader;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class InvoiceHeaderPanel extends JPanel {
	private JLabel icon;
	private JLabel street;
	private JLabel name;
	private JLabel city;
	private JLabel phone;
	private JLabel email;
	private JPanel jPanel1;
	public InvoiceHeaderPanel(){
		initGUI();
	}
	private void initGUI() {
		try {
			//this.setBorder();
			BorderLayout thisLayout = new BorderLayout();
			this.setLayout(thisLayout);
			this.setPreferredSize(new Dimension(780, 200));
			{
				icon = new JLabel();
				icon.setIcon(ImageLoader.getImageIcon("splash.jpg"));
				this.add(icon, BorderLayout.WEST);
			}
			{
				jPanel1 = new JPanel();
				
				jPanel1.setLayout(new GridLayout(0,1));
				this.add(jPanel1, BorderLayout.CENTER);
				{
					name = new JLabel("Traiteur Quebak - Peter Van Aelst ",JLabel.CENTER);
					jPanel1.add(name);
					name.setFont( new Font("LucidaSans", Font.BOLD, 20));
				}
				{
					street = new JLabel("Sint Lenaartseweg 24a",JLabel.CENTER);
					jPanel1.add(street);
					street.setFont(new Font("LucidaSans", Font.BOLD, 15));
					
				}
				{
					city = new JLabel("2960 Loenhout",JLabel.CENTER);
					jPanel1.add(city);
					city.setFont(new Font("LucidaSans", Font.BOLD, 15));
					
				}
				{
					phone = new JLabel("GSM +32.494.87.67.06",JLabel.CENTER);
					jPanel1.add(phone);
					phone.setFont(new Font("LucidaSans", Font.BOLD, 15));
					
				}
				{
					email = new JLabel("traiteurquebak-petervanaelst@telenet.be",JLabel.CENTER);
					jPanel1.add(email);
					email.setFont(new Font("LucidaSans", Font.BOLD, 15));
					
				}
				
			}

		} catch(Exception e) {
			e.printStackTrace();
		}
	}

}
